<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'object-form',
	'enableAjaxValidation'=>false,
)); ?>
	<div class="col1 fl">
		<div class="row cl">
			<?php echo $form->errorSummary($model); ?>
		</div>
		<div class="row cl">
			<?php echo $form->labelEx($model,'name'); ?>
			<div class="inp_text">
				<?php echo $form->textField($model,'name',array('maxlength'=>255)); ?>
				<?php echo $form->error($model,'name'); ?>
			</div>
		</div>
		<div class="row">
			<?php echo $form->labelEx($model,'country_id'); ?>
			<div class="select" id="country">
				<?php echo $form->dropDownList($model,'country_id',CSelect::items('Country'),  array( 'empty' => (Yii::t('main', 'Select a country')) )); ?>
				<?php echo $form->error($model,'country_id'); ?>
			</div>
		</div>
		<div class="row">
			<?php echo $form->labelEx($model,'city_id'); ?>
			<div class="select">
				<?php echo $form->dropDownList($model,'city_id', $cityList, array('empty' => (Yii::t('main', 'Select a country')), 'disabled'=> false)); ?>
				<?php echo $form->error($model,'city_id'); ?>
			</div>
		</div>
		<div class="row">
			<?php echo $form->labelEx($model,'street'); ?>
			<div class="inp_text">
				<?php echo $form->textField($model,'street',array('maxlength'=>255)); ?>
				<?php echo $form->error($model,'street'); ?>
			</div>
		</div>
		<div class="row cl">
			<div class="inp_col fl">
				<?php echo $form->labelEx($model,'house'); ?>
				<div class="inp_text">
					<!-- <input type="text" class="br3 bsi15" value=""/> -->
					<?php echo $form->textField($model,'house',array('maxlength'=>255)); ?>
				</div>
			</div>
			<div class="inp_col fl">
				<?php echo $form->labelEx($model,'apartment'); ?>
				<div class="inp_text">
					<!-- <input type="text" class="br3 bsi15" value=""/> -->
					<?php echo $form->textField($model,'apartment',array('maxlength'=>255)); ?>
				</div>
			</div>
		</div>
		<div class="row">
			<?php echo $form->labelEx($model,'description'); ?>
			<div class="textarea">
				<?php echo $form->textArea($model,'description',array('rows'=>6)); ?>
				<?php echo $form->error($model,'description'); ?>
			</div>
		</div>

		<?php if(isset($model->id)) : ?>
			<input type="hidden" name="object_id" value="<?php echo $model->id; ?>" />
		<?php endif; ?>

		<input type="hidden" name="step" value="1" />
		<input type="hidden" name="next_step" value="2" />

		<div class="btn blue br3 fl">
			<?php echo CHtml::submitButton($model->isNewRecord ? 'Continue' : 'Save'); ?>
		</div>
	</div>
<?php $this->endWidget(); ?>